//
//  ClassCell.m
//  FingerUniversity
//
//  Created by vantle on 16/3/15.
//  Copyright © 2016年 vantle. All rights reserved.
//

#import "ClassCell.h"
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
@implementation ClassCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _myImage=[[UIImageView alloc]init];
        _myImage.center=CGPointMake(20, self.contentView.center.y);
        _myImage.bounds=CGRectMake(0, 0, 20, 20);
        
        [self.contentView addSubview:_myImage];

        _titleLabel=[[UILabel alloc]init];
        _titleLabel.center=CGPointMake(150, self.contentView.center.y+10);
        _titleLabel.bounds=CGRectMake(0, 0, 200, 25);
        _titleLabel.font=[UIFont systemFontOfSize:19];
        [self.contentView addSubview:_titleLabel];
        
        _numberLabel=[[UILabel alloc]initWithFrame:CGRectMake(_myImage.frame.origin.x+5, _myImage.frame.origin.y+_myImage.frame.size.height+2, 100, 20)];
        [self.contentView addSubview:_numberLabel];
        
        _rightArrow=[[UIImageView alloc]init];
        _rightArrow.center=CGPointMake(ScreenWidth-20, self.contentView.center.y+10);
        _rightArrow.bounds=CGRectMake(0, 0, 10, 15);
        _rightArrow.image=[UIImage imageNamed:@"jiantou"];
        [self.contentView addSubview:_rightArrow];
        
    }
    return self;
}
@end
